import {userType} from "../models/user"

let currentUser : userType;

const setCurrentUserState = (user : userType) =>{
    currentUser = user;
}

const getCurrentUserState = (): userType =>{
    return currentUser;
}
export  {
    setCurrentUserState,
    getCurrentUserState,
}
